<?php
	$form = $_POST;
	$customer = new Customer();
	$customer->select($customer_id);
	$customer->setname($form['customer_name']);
	$customer->setaddress($form['address']);
	$customer->setphone_number($form['phone_number']);
	$customer->setbirthday($form['birthday']);
	$customer->setidentify_number($form['identify_number']);
	$customer->setage_type($form['age_type']);
	$customer->update();

	$msg = "Thông tin khách đã được sửa thành công";
	admin_load($msg, "?act=customers_list&order_id=".$customer->getorder_id());
?>